/**
 * 
 */

package common;

import java.io.Serializable;

import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;

import com.e885.log.E885Logger;

/**
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class MyBean implements HttpSessionBindingListener, Serializable
{
	private static final long serialVersionUID = 6731164764507203909L;

	private String name;

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.servlet.http.HttpSessionBindingListener#valueBound(javax.servlet.http.HttpSessionBindingEvent)
	 */
	public void valueBound( HttpSessionBindingEvent event )
	{
		E885Logger.testLog.debug( "*** start to execute method valueBound() ***" );

		E885Logger.testLog.debug( "name:[" + event.getName() + "]" );
		E885Logger.testLog.debug( "value:[" + event.getValue() + "]" );
		
		E885Logger.testLog.debug( "*** end to execute method valueBound() ***" );
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.servlet.http.HttpSessionBindingListener#valueUnbound(javax.servlet.http.HttpSessionBindingEvent)
	 */
	public void valueUnbound( HttpSessionBindingEvent event )
	{
		E885Logger.testLog.debug( "*** start to execute method valueUnbound() ***" );

		E885Logger.testLog.debug( "name:[" + event.getName() + "]" );
		E885Logger.testLog.debug( "value:[" + event.getValue() + "]" );
		
		E885Logger.testLog.debug( "*** end to execute method valueUnbound() ***" );
	}

	public String getName()
	{
		return name;
	}

	public void setName( String name )
	{
		this.name = name;
	}

}
